package cn.hiapi.user.vo;

import cn.hiapi.basic.entity.BasicEntity;
import cn.hiapi.shop.vo.ShopBase;
import cn.hiapi.shopkeeper.enums.ActivityType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2023/1/2 20:59
 */
@Setter
@Getter
public class MyActivityOrderVo extends BasicEntity {
    private Long id;
    @ApiModelProperty("活动类型")
    private ActivityType activityType;

    private long oid;
    @ApiModelProperty("活动id")
    private long aid;
    @ApiModelProperty("卡包标题")
    private String title;

    private String thumb;

    @ApiModelProperty("购买价格")
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal price = BigDecimal.ZERO;

    @ApiModelProperty("购买价格")
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal costPrice = BigDecimal.ZERO;

    @ApiModelProperty("状态 0 待使用,1已使用")
    private int status;

    @ApiModelProperty("兑换开始时间")
    private long startTime;
    @ApiModelProperty("兑换结束时间")
    private long endTime;
    @ApiModelProperty("创建时间")
    private long created = System.currentTimeMillis();

    private ShopBase shop;

    @ApiModelProperty("扩展字段")
    private Object expand;
}
